// DesktopOrganizer.h
#ifndef DESKTOPORGANIZER_H
#define DESKTOPORGANIZER_H
#include <QtWidgets/QMainWindow>

class DesktopOrganizer : public QMainWindow {
    Q_OBJECT

public:
    enum OrganizeMode {
        AutoArrange,
        AlignToGrid,
        SortByName,
        SortBySize,
        SortByDate
    };
 //   DesktopOrganizer(QWidget* parent);
    explicit DesktopOrganizer(QWidget* parent = nullptr);

    static bool organizeDesktop(OrganizeMode mode = AutoArrange);
    static bool isDesktopOrganizable();
    static void arrangeDesktopIcons(int value);
private:
    static bool organizeWindows(OrganizeMode mode);
    static bool organizeLinux(OrganizeMode mode);
    static bool organizeMacOS(OrganizeMode mode);
};

#endif // DESKTOPORGANIZER_H